﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class Animal
    {
        private string _name;
        public string Name 
        {
            get { return this._name; }
            set { this._name = value; }
        }

        public Animal() { }
        public Animal(string Name)
        {
            this._name = Name;
        }

        public void SayHi() 
        {
            Console.WriteLine("我是{0}动物，我不仅会吃",this.Name);
        }
    }
}
